<div id="content">
    <div class="container">
        <div id="main">
            <?php if($productos->num_rows() > 0){?>
                <?php foreach ($productos->result_array() as $key => $value) { ?>
                    <div class="entry">
                        <div class="entry-header">
                            <h2 class="title"><a href="<?php echo site_url('front/reserva/ver/' . $value['product_id']); ?>"><?php echo $value['descripcion']; ?></a></h2>
                            <p class="meta"><?php echo $value['nombre']; ?></p>
                            <a href="<?php echo site_url('front/reserva/ver/' . $value['product_id']); ?>" class="button"><?php echo lang('leer_mas'); ?>...</a>
                        </div><!-- end .entry-header -->
                        <div class="entry-content">
                            <table>
                                <tr>
                                    <td>
                                        <a href="<?php echo site_url('front/reserva/ver/' . $value['product_id']); ?>">
                                            <img src="<?php echo base_url($this->controlador->get_datos_producto('FOTDEF', $value['product_id'])); ?>" width="240" height="140" alt="" class="entry-image" />
                                        </a>
                                    </td>
                                    <td style="vertical-align: top">
                                        <p><?php echo lang('el_establecimiento_dispone_de'); ?>:</p>
                                        <?php echo $this->controlador->get_datos_producto('CONTENIDO', $value['product_id']); ?>
                                    </td>
                                </tr>
                            </table>
                            <hr/>
                            <ul class="entry-links">
                                <li style="color: #878080"><?php echo lang('valoracion') . " " . ($value['valoracion'] == '0.00' ? "-" : $value['valoracion']); ?> <span class="separator">|</span></li>
                                <li><a href="#"><?php echo lang('enviar_a_un_amigo'); ?></a> <span class="separator">|</span></li>
                                <li><a href="#"><?php echo lang('marca_como_favorito'); ?></a> <span class="separator">|</span></li>
                                <li><a href="#"><?php echo $this->controlador->get_datos_producto('COMENTARIO', $value['id']); ?>&nbsp;
                                        <?php echo lang('comentarios'); ?></a> <span class="separator">|</span></li>
                            </ul>
                        </div><!-- end .entry-content -->
                    </div><!-- end .entry -->
                <?php } ?>
                <?php echo $this->pagination->create_links(); ?>
            <?php }else{ ?>
                <div class="entry">
                    <div class="entry-header">
                        <h2 class="title"><?php echo lang('no_se_han_encontrado_viviendas');?></h2>
                        <p class="meta"><?php echo lang('mensaje_no_resultados');?></p>
                        <img src="<?php echo site_url().RUTA_TEMPLATE;?>/img/lupa.jpg"/>
                    </div><!-- end .entry-header -->
                </div><!-- end .entry -->  
            <?php } ?>
        </div><!-- end #main -->
        <div id="sidebar" style="margin-top: 20px">
            <?php echo $buscador;?>
            <?php include 'menu_ads.php'; ?>
            <?php $this->load->view('front/tags', $datos_tags); ?>
        </div><!-- end #sidebar -->
        <div class="clear"></div>
    </div><!-- end .container -->
</div><!-- end #content -->
